package {
	import flash.geom.Point;
	import org.flixel.FlxObject;

	public class Direction {
		
		public static const NORTH:int = 0;
		public static const SOUTH:int = 1;
		public static const WEST:int = 2;
		public static const EAST:int = 3;
		
		public static function getOpposite(direction:int):int {
			if (direction == Direction.NORTH) {
				return Direction.SOUTH;
			} else if (direction == Direction.SOUTH) {
				return Direction.NORTH;
			} else if (direction == Direction.WEST) {
				return Direction.EAST;
			} else {
				return Direction.WEST;
			}
		}
		public static function toFlixelDirection(direction:int):uint{
			switch(direction){
				case NORTH:
					return FlxObject.UP;
				case SOUTH:
					return FlxObject.DOWN;
				case WEST:
					return FlxObject.LEFT;
				case EAST:
					return FlxObject.RIGHT;
			}
			return direction;
		}
	}
}